//
//  RootViewController.m
//  FunSport_WWL
//
//  Created by 王黎 on 16/4/28.
//  Copyright © 2016年 wanghao. All rights reserved.
//

#import "RootViewController.h"
#import "InformationViewController.h"
#import "ShoppingViewController.h"
#import "VideoViewController.h"
#import "MineViewController.h"

@interface RootViewController ()

@end

@implementation RootViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    
    //tabBar底部的四个图标
    
    InformationViewController *infoVC = [[InformationViewController alloc]initWithNibName:@"InformationViewController" bundle:nil];
    ShoppingViewController *shoppingVC = [[ShoppingViewController alloc]initWithNibName:@"ShoppingViewController" bundle:nil];
    VideoViewController *videoVC = [[VideoViewController alloc]initWithNibName:@"VideoViewController" bundle:nil];
    MineViewController *mineVC = [[MineViewController alloc]initWithNibName:@"MineViewController" bundle:nil];
    
    infoVC.tabBarItem.title = @"info";
    shoppingVC.tabBarItem.title = @"shoppingVC";
    videoVC.tabBarItem.title = @"info";
    mineVC.tabBarItem.title = @"mineVC";
    
    self.viewControllers = @[mineVC,infoVC,shoppingVC,videoVC];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
